home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / classic.jar / skin / classic / global / checkbox.css < prev    next >
Encoding:
Cascading Style Sheet File  |  2008-03-25  |  4.1 KB  |  132 lines

  1. /* ***** BEGIN LICENSE BLOCK *****
  2.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  3.  *
  4.  * The contents of this file are subject to the Mozilla Public License Version
  5.  * 1.1 (the "License"); you may not use this file except in compliance with
  6.  * the License. You may obtain a copy of the License at
  7.  * http://www.mozilla.org/MPL/
  8.  *
  9.  * Software distributed under the License is distributed on an "AS IS" basis,
  10.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  11.  * for the specific language governing rights and limitations under the
  12.  * License.
  13.  *
  14.  * The Original Code is Mozilla Communicator client code, released
  15.  * March 31, 1998.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 1998-1999
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. /* ===== checkbox.css ===================================================
  39.   == Styles used by the XUL checkbox element.
  40.   ======================================================================= */
  41.  
  42. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  43.  
  44. /* ::::: checkbox ::::: */
  45.  
  46. checkbox {
  47.   -moz-appearance: checkbox-container;
  48.   margin: 2px 4px;
  49.   border-left: 2px transparent;
  50.   border-right: 2px transparent;
  51. }
  52.  
  53. /* With native theming on, the spacer-box paints the check mark and includes
  54.    the spacing to the right, so that oversized checkbox images can slop over
  55.    into the space.
  56.  
  57.    If we need to disable checkbox theming, the spacer box no longer paints
  58.    the check mark, but its fallback CSS border supplies the padding between
  59.    the mark and the label.  The xul:image then takes over painting the check
  60.    mark. */
  61.  
  62. .checkbox-spacer-box {
  63.   -moz-appearance: checkbox;
  64.   -moz-box-align: center;
  65.   margin: 2px;
  66.   border-right: 2px solid transparent;
  67. }
  68.  
  69. .checkbox-label-center-box {
  70.   -moz-box-align: center;
  71. }
  72.  
  73. .checkbox-label-box {
  74.   -moz-appearance: checkbox-label;
  75. }
  76.  
  77. .checkbox-icon[src] {
  78.   -moz-margin-end: 2px;
  79. }
  80.  
  81. .checkbox-label {
  82.   margin: 0 !important;
  83. }
  84.  
  85. /* ..... focused state ..... */
  86.  
  87. checkbox:focus > .checkbox-label-center-box > .checkbox-label-box {
  88.   border: 1px dotted ThreeDDarkShadow;
  89. }
  90.  
  91. /* ..... disabled state ..... */
  92.  
  93. checkbox[disabled="true"] > .checkbox-spacer-box > .checkbox-check {
  94.   background-color: -moz-Dialog;
  95. }
  96.  
  97. checkbox[disabled="true"] {
  98.   color: GrayText !important;
  99. }
  100.  
  101. /* ::::: checkmark image ::::: */
  102.  
  103. .checkbox-check {
  104.   border: 2px solid;
  105.   -moz-border-top-colors: ThreeDShadow ThreeDDarkShadow;
  106.   -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  107.   -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  108.   -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  109.   min-width: 13px;
  110.   min-height: 13px;
  111.   background: -moz-Field no-repeat 50% 50%;
  112. }
  113.  
  114. checkbox:hover {
  115.   color: -moz-buttonhovertext;
  116. }
  117.  
  118. checkbox:hover:active > .checkbox-spacer-box > .checkbox-check {
  119.   background-color: -moz-Dialog;
  120. }
  121.  
  122. /* ..... checked state ..... */
  123.  
  124. checkbox[checked="true"] > .checkbox-spacer-box > .checkbox-check {
  125.   background-image: url("chrome://global/skin/checkbox/cbox-check.gif");
  126. }
  127.  
  128. checkbox[checked="true"][disabled="true"] > .checkbox-spacer-box > .checkbox-check {
  129.   background-image: url("chrome://global/skin/checkbox/cbox-check-dis.gif") !important
  130. }
  131.  
  132.